home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / VXTHREAD.HPP < prev    next >
C/C++ Source or Header  |  1993-08-24  |  3KB  |  83 lines

  1. //----------------------------------------------------------------------------
  2. //                            MODULE DESCRIPTION
  3. //
  4. //  Module:    vxthread.hpp
  5. //   Title:    VOX and ME/2 Interface
  6. //  Notice:    John M. Weeder
  7. //                 Copyright (c) 1993. All rights reserved.
  8. //             This module contains proprietary information and should be 
  9. //                treated as confidential.
  10. //
  11. //----------------------------------------------------------------------------
  12. //                           MAINTENANCE HISTORY
  13. //
  14. // $Workfile$
  15. // $Revision$
  16. //   $Author$
  17. //     $Date$
  18. //      $Log$    
  19. //
  20. //----------------------------------------------------------------------------
  21. //                             MODULE NARRATIVE
  22. //
  23. //    This module contains code for the class VX_THREAD.
  24. //
  25. //    The code in this module may be written in C++ or C.
  26. //
  27. //    This module is portable to:
  28. //        DOS 3.X+
  29. //        MS Windows 3.X+
  30. //        OS/2 2.X+
  31. //        OS/2 2.0 PM
  32. //
  33. //    The following compilers are supported:
  34. //        MSC 6.0A
  35. //        MSC/C++ 7.0
  36. //        Borland C++ 3.1 for DOS
  37. //        Borland C++ 1.0 for OS/2 2.X
  38. //
  39. //----------------------------------------------------------------------------
  40.  
  41.  
  42. //----------------------------------------------------------------------------
  43. //    Menu options
  44. //----------------------------------------------------------------------------
  45. #define VX_MENU_FAIL        (-1)
  46. #define VX_MENU_ESCAPE    (-2)
  47.  
  48. #define VX_REC_UNIQUE    (0x0001)            // Select unique message number
  49. #define VX_REC_TEMP        (0x0002)            // Select a temporary file name
  50. #define VX_REC_SHAVE        (0x0004)            // Shave message
  51. #define VX_REC_BEEP        (0x0008)            // Beep before record
  52.  
  53.  
  54. //----------------------------------------------------------------------------
  55. //    Class VX_THREAD
  56. //----------------------------------------------------------------------------
  57. CLASSDEF(VX_THREAD);
  58. #define VX_THREAD_PARENT VX_VOX
  59. class CLASSTYPE VX_THREAD : public VX_THREAD_PARENT, virtual public CL_THREAD
  60. {
  61. public:
  62.     FN_M VX_THREAD();
  63.     FN_M VX_THREAD(RCVX_THREAD);
  64.     virtual FN_M ~VX_THREAD();
  65.  
  66.     virtual VOID FN_M Call() = 0;
  67.     virtual BOOL FN_M Destroy(BOOL = TRUE);
  68.     virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
  69.     virtual BOOL FN_M IsError() const;
  70.     virtual BOOL FN_M IsValid() const;
  71.     SHORT FN_M Menu(RVX_PROMPT, FLAG16);
  72.     RCVX_THREAD FN_M operator=(RCVX_THREAD);
  73.     BOOL FN_M Query(RVX_PROMPT, PSZ, SIZET, SIZET);
  74.     BOOL FN_M Record(PSZ, RVOXMSG, USHORT = 0);
  75.     BOOL FN_M RecordMenu(RVX_PROMPT, PSZ, RVOXMSG, FLAG16 = 0);
  76.     virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
  77.     virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
  78.     VOID FN_M Thread();
  79. };
  80. //----------------------------------------------------------------------------
  81. //------------------------------- End of File --------------------------------
  82. //----------------------------------------------------------------------------
  83.